<%-- 
    Document   : view
    Created on : Aug 4, 2013, 4:15:32 PM
    Author     : Thien Nguyen
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@taglib  uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">

<jsp:include page="header1.jsp"/>
<head>
    <link href="css/css/bootstrap.css" rel="stylesheet" type="text/css" />
    <link href="css/css/bootstrap.min.css" rel="stylesheet" type="text/css" />
</head>
<c:if test="${type eq 'song'}">
    <c:forEach var="item" items="${LIST}">
        <h1>Thông tin bài hát</h1><br/>
        <form class="form-horizontal">
            <div class="form-group">
                <label for="inputEmail2" class="col-lg-2 control-label">ID</label>
                <div class="col-lg-10">
                    <p class="form-control-static">${item.songID}</p>
                </div>
            </div>

            <div class="form-group">
                <label for="inputEmail2" class="col-lg-2 control-label">Tên bài hát</label>
                <div class="col-lg-10">
                    <p class="form-control-static">${item.name}</p>
                </div>
            </div>


            <div class="form-group">
                <label for="inputEmail2" class="col-lg-2 control-label">Ca sĩ</label>
                <div class="col-lg-10">
                    <p class="form-control-static">${item.artists.artistName}</p>
                </div>
            </div>

            <div class="form-group">
                <label for="inputEmail2" class="col-lg-2 control-label">Album</label>
                <div class="col-lg-10">
                    <p class="form-control-static">${item.albums.albumName}</p>
                </div>
            </div>

            <div class="form-group">
                <label for="inputEmail2" class="col-lg-2 control-label">Thể loại</label>
                <div class="col-lg-10">
                    <p class="form-control-static">${item.genres.genreName}</p>
                </div>
            </div>

            <div class="form-group">
                <label for="inputEmail2" class="col-lg-2 control-label">Nhà sản xuất</label>
                <div class="col-lg-10">
                    <p class="form-control-static">${item.producers.producerName}</p>
                </div>
            </div>

            <div class="form-group">
                <label for="inputEmail2" class="col-lg-2 control-label">Quốc gia</label>
                <div class="col-lg-10">
                    <p class="form-control-static">${item.country.countryName}</p>
                </div>
            </div>

            <div class="form-group">
                <label for="inputEmail2" class="col-lg-2 control-label">Nhạc sĩ</label>
                <div class="col-lg-10">
                    <p class="form-control-static">${item.musicians.musicianName}</p>
                </div>
            </div>

            <div class="form-group">
                <label for="inputEmail2" class="col-lg-2 control-label">Năm sản xuất</label>
                <div class="col-lg-10">
                    <p class="form-control-static">${item.publishYear}</p>
                </div>
            </div>

            <div class="form-group">
                <label for="inputEmail2" class="col-lg-2 control-label">Lượt nghe</label>
                <div class="col-lg-10">
                    <p class="form-control-static">${item.listened}</p>
                </div>
            </div>

            <div class="form-group">
                <label for="inputEmail2" class="col-lg-2 control-label">Lượt download</label>
                <div class="col-lg-10">
                    <p class="form-control-static">${item.downloaded}</p>
                </div>
            </div>

            <div class="form-group">
                <label for="inputEmail2" class="col-lg-2 control-label">Bài hát</label>
                <c:if test="${item.isSong eq true}">
                    <div class="col-lg-10">
                        <p class="form-control-static">Có</p>
                    </div>
                </c:if>
                <c:if test="${item.isSong != true}">
                    <div class="col-lg-10">
                        <p class="form-control-static">Không</p>
                    </div>
                </c:if>
            </div>

            <div class="form-group">
                <label for="inputEmail2" class="col-lg-2 control-label">Link nghe/xem 1</label>
                <div class="col-lg-10">
                    <p class="form-control-static">${item.l1}</p>
                </div>
            </div>


            <div class="form-group">
                <label for="inputEmail2" class="col-lg-2 control-label">Link nghe/xem 2</label>
                <div class="col-lg-10">
                    <p class="form-control-static">${item.l2}</p>
                </div>
            </div>

            <div class="form-group">
                <label for="inputEmail2" class="col-lg-2 control-label">Link nghe/xem 3</label>
                <div class="col-lg-10">
                    <p class="form-control-static">${item.l3}</p>
                </div>
            </div>
            <div class="form-group">
                <label for="inputEmail2" class="col-lg-2 control-label">Link nghe/xem 4</label>
                <div class="col-lg-10">
                    <p class="form-control-static">${item.l4}</p>
                </div>
            </div>


            <div class="form-group">
                <label for="inputEmail2" class="col-lg-2 control-label">Link download 1</label>
                <div class="col-lg-10">
                    <p class="form-control-static">${item.d1}</p>
                </div>
            </div>


            <div class="form-group">
                <label for="inputEmail2" class="col-lg-2 control-label">Link download 2</label>
                <div class="col-lg-10">
                    <p class="form-control-static">${item.d2}</p>
                </div>
            </div>


            <div class="form-group">
                <label for="inputEmail2" class="col-lg-2 control-label">Link download 3</label>
                <div class="col-lg-10">
                    <p class="form-control-static">${item.d3}</p>
                </div>
            </div>


            <div class="form-group">
                <label for="inputEmail2" class="col-lg-2 control-label">Link download 4</label>
                <div class="col-lg-10">
                    <p class="form-control-static">${item.d4}</p>
                </div>
            </div>
            <div class="form-group">
                <label for="inputEmail2" class="col-lg-2 control-label">Thumbnail</label>
                <div class="col-lg-10">
                    <p class="form-control-static">${item.thumbnail}</p>
                </div>
            </div>

            <input type="hidden" name="id" value="${item.songID}" />
            <input type="hidden" name="type" value="song" />
            <input type="submit" value="Back" name="btnAction" />
        </form>
    </c:forEach>
</c:if>
<jsp:include page="footer.jsp"/>
